/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hextd.message;

import hextd.message.MessageFactory.NetworkMessage;
import java.util.regex.Pattern;

/**
 *
 * @author hylke
 */
public class MessageUnknown implements Message {

	public MessageFactory.NetworkMessage type = NetworkMessage.Unknown;
	public static String RegExp = ".*";
	public static Pattern MessagePattern = Pattern.compile(MessageUnknown.RegExp);
	private String message;

	public MessageUnknown() {
	}

	private MessageUnknown(String message) {
		this.message = message;
	}

	@Override
	public String getMessage() {
		return this.message;
	}

	@Override
	public NetworkMessage getType() {
		return this.type;
	}

	@Override
	public Pattern getPattern() {
		return MessageUnknown.MessagePattern;
	}

	@Override
	public Message initFromString(String message) {
		return new MessageUnknown(message);
	}

	@Override
	public int getSenderId() {
		return -2;
	}

	@Override
	public void setSenderId(int id) {
		throw new UnsupportedOperationException("Not supported yet.");
	}
}
